package com.GDOU.mapper;

import com.GDOU.bean.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherMapper {
    //教师登录
    Teacher checkByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    //通过教师id查询教师信息
    Teacher getTeacherById(@Param("teaId") Integer teaId);

    //添加教师
    int addTeacher(Teacher teacher);

    //删除教师
    int deleteTeacher(@Param("teaNum") String teaNum);

    //修改教师
    int updateTeacher(Teacher teacher);

    //查询所有教师
    List<Teacher> getAllTeacher();

    //通过姓名查询教师信息
    Teacher getTeacherByName(@Param("teaName") String teaName);
}
